define(function (require, exports, module) {
//    require("apps/attendance/homePage.css");
    require("apps/attendance/homePage1.css");
    exports.init = function (ctx, uuid, config) {
        var page = new $.PageDomFactory(uuid);

        $(".cellBox").click(function(){
            location.href = ctx + "/app/api/attendance/toSelfList?id=" + $(this).attr("data-id");
        });

        page.getJqDom("showCase").click(function(){
            if($(this).is(":checked")){
                page.getJqDom("caseBox").show();
                page.getJqDom("allBox").hide();
            }else{
                page.getJqDom("allBox").show();
                page.getJqDom("caseBox").hide();
            }
        });

    }
});